import Vuex from 'vuex';
import ToolUni from '../ToolUni';
import area from "./modules/ToolAreaVuex.js";
import log from "./modules/ToolLog.js";

const store = new Vuex.Store({
	modules: {
		area,
		log
	},
	state: {
		_dsId: ToolUni.storage("_dsId")
	},
	mutations: {
		updateDsId(state, dsId) {
			state._dsId = dsId;
			ToolUni.storage("_dsId", dsId);
		}
	}
})

export default store;
